FROM java:8
EXPOSE 8080

VOLUME /tmp
ENV TZ=Asia/Shanghai
ADD qiwen-stock.jar /app.jar
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar"]
